<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
<style type="text/css">
.mll2{ float: left;margin-left: 20px}
.mll{ float: left; margin-left: 600px }
</style>
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('WorkContactList/index')}">工作联系单管理</a></li>
            <li class="active"><a href="{:U('WorkContactList/add')}">新增工作联系单</a></li>
            <li class="active"><a href="{:U('WorkContactList/edit')}">编辑工作联系单</a></li>
        </ul> 
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">

                        <div class="panel-body">
                            <form method="post" class="form-horizontal " action="{:U('WorkContactList/add_post')}">
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>工作联系单</h3>
                                        <hr />
                                    </div>
                                    <div>
                                        <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" required/></p>
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><label>工程名称:</label><input type="text" class="input-xt input-deptname"  disabled value="{$job_name}" readonly/></p>

                                        <p class="pull-right tg-serialnum"><label>建设单位:</label><input class="input-xt" name="code" value="杭州市中医院" readonly/></p>
                                    </div>
                                </div>

                                <table class="table table-bordered">
                                    <tr>
                                        <td style="border-right:none !important;">
                                            
                                                <p>
                                                    <label>事由：
                                                        <input type="text" class="input-xt input-deptname"  name="" />
                                                    </label>
                                                    <textarea style="height: 200px;width: 100%"></textarea>
                                                </p>
                                                
                                                <p>
                                                    <span class="mll2">项目经办：</span>
                                                    <span class="mll">项目经理：</span>
                                                    <div class="signature-date" style="margin-right: 200px !important">
                                                        <span>年</span>
                                                        <span>月</span>
                                                        <span>日</span>
                                                    </div>
                                                </p>         
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <label>监理意见：</label>
                                            <textarea style="height: 50px;width: 100%"></textarea>
                                            <p>
                                                <span style="float: left;margin-left: 20px">负责人（签章）：</span>
                                                <div class="signature-date" style="margin-right: 200px !important">
                                                    <span>年</span>
                                                    <span>月</span>
                                                    <span>日</span>
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <label>代建意见：</label>
                                            <textarea style="height: 50px;width: 100%"></textarea>
                                            <p>
                                                <span style="float: left;margin-left: 20px">负责人（签章）：</span>
                                                <div class="signature-date" style="margin-right: 200px !important">
                                                    <span>年</span>
                                                    <span>月</span>
                                                    <span>日</span>
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <label>建设意见：</label>
                                            <textarea style="height: 50px;width: 100%"></textarea>
                                            <p>
                                                <span style="float: left;margin-left: 20px">负责人（签章）：</span>
                                                <div class="signature-date" style="margin-right: 200px !important">
                                                    <span>年</span>
                                                    <span>月</span>
                                                    <span>日</span>
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <label>设计意见：</label>
                                            <textarea style="height: 50px;width: 100%"></textarea>
                                            <p>
                                                <span style="float: left;margin-left: 20px">负责人（签章）：</span>
                                                <div class="signature-date" style="margin-right: 200px !important">
                                                    <span>年</span>
                                                    <span>月</span>
                                                    <span>日</span>
                                                </div>
                                            </p>
                                        </td>
                                    </tr>    
                                </table>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </form>                   
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
        $(document).ready(function(e) {
            // 文件选择器change事件
            $("#upFile").on("change", function(){
                UploadFile("{:U('WorkContactList/upload')}", "work_contactList");
            });
            $("input:checkbox").click(function() {
                $("#upFile").click();
            }); 
            $(document).on("click", ".delFile", function(){
                if($(this).attr("value") != undefined){
                    delFile("{:U('WorkContactList/delFile')}", $(this).attr("value"), $(this))
                } else {
                    $(this).closest("div").remove();
                }
            });
        });
    </script>
</body>
</html>